package com.thiswhyme.demo.msgpush.core.event;

import com.thiswhyme.demo.msgpush.core.event.bean.EventType;
import com.thiswhyme.demo.msgpush.core.event.bean.WebSocketEvent;

/**
 * @description: WebSocket事件处理器
 * @author: thiswhyme
 * @date: 2021/9/28
 */
public interface EventHandler {

    /**
     * 处理器对应的事件类型
     * @return
     */
    EventType supportType();

    /**
     * 事件处理
     * @param event
     */
    void handle(WebSocketEvent event);
}
